package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.sns.Comment;
import com.aiyige.page.my.order.model.ConfirmClassedRequestBody;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao on 2018.
 */

public class ConfirmClassedRequest {

   private String orderId;

   private ConfirmClassedRequestBody body;

    private ConfirmClassedRequest(Builder builder) {
        setOrderId(builder.orderId);
        setBody(builder.body);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getOrderId() {
        return orderId == null ? "" : orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? "" : orderId;
    }

    public ConfirmClassedRequestBody getBody() {
        return body;
    }

    public void setBody(ConfirmClassedRequestBody body) {
        this.body = body;
    }

    public static final class Builder {
        private String orderId;
        private ConfirmClassedRequestBody body;

        private Builder() {
        }

        public Builder orderId(String val) {
            orderId = val;
            return this;
        }

        public Builder body(ConfirmClassedRequestBody val) {
            body = val;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().confirmClassed(orderId,ConfirmClassedRequestBody.newBuilder().id(orderId).build());
        }
    }
}
